package com.lonely.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.common.core.domain.TimeLine;
import com.lonely.goods.domain.entity.SysMaterialLog;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/8/26 10:35
 * @description: 物料日志服务类
 */
public interface IMaterialLogService extends IService<SysMaterialLog> {

    /**
     * 添加日志
     *
     * @param materialId
     * @param title
     * @param body
     */
    void addLog(Long materialId, String title, String body);

    /**
     * 获取指定物料的日志时间线
     *
     * @param materialId
     * @return
     */
    List<TimeLine> getLogTimeLine(Long materialId);
}
